package com.bingbing.bingbingmall.order.feign;

import com.bingbing.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("bingbingmall-product")
public interface ProductFeignService {

    @GetMapping("/product/spuinfo/skuId/{id}")
    R getSpuInfoBySkuId(@PathVariable("id") Long skuId);

    @GetMapping("/product/skuinfo/info1/{skuId}")
    R getSkuInfoBySkuId(@PathVariable("skuId") Long skuId);
}
